package com.jic.interaction.ChinaPost.controller;

import com.jic.interaction.ChinaPost.model.vo.request.SelectPaymentRequest;
import com.jic.interaction.ChinaPost.model.vo.response.SelectPaymentResponse;
import com.jic.interaction.ChinaPost.service.SelectPaymentService;
import com.jic.rest.RestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@SuppressWarnings("赔偿金支付查询")
@RequestMapping("/payment/")
public class SelectPaymentController {

    @Autowired
    SelectPaymentService service;


    public RestResult<SelectPaymentResponse> toSelect(@RequestBody SelectPaymentRequest request) {
        SelectPaymentResponse response = service.selectPaymnt(request);
        return RestResult.success(response);
    }
}
